<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="st" uri="/as-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'courseList3.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>

	<jsp:include page="head.jsp"></jsp:include>

		<h1>
			<font color="red"><center>
					查看学生
				</center> </font>
		</h1>
		<table border="10%" width="80%" align="center">
			<tr>
				<td>
					课程名
				</td>
				<td>
					课程开始日期
				</td>
				<td>
					课程结束日期
				</td>
				<td>
					查看学生列表
				</td>

			</tr>

			<s:iterator value="#request.list" id="usme">

				<tr>
					<td>
						<s:property value="#usme.name" />
					</td>

					<td>
						<!--<s:property value="#usme.startTime" />
						-->
						<s:date name="startTime" format="yy-MM-dd"/>
					</td>

					<td>
						<!--<s:property value="#usme.endTime" />
						--><s:date name="endTime" format="yy-MM-dd"/>
					</td>


					<td>
						<s:a href="admin/studentList.action?courseId=%{#usme.courseId}">查看</s:a>
					</td>

				</tr>
			</s:iterator>
		</table>
		<br>
		<center>
			<st:pageCode
				url="admin/courseList3.action?course.courseId=${usme.courseId}&pageNo=:pageNo"
				maxPageNo="${maxPageNo}" currentPageNo="${pageNo}" />

		</center>
		<p>
			点击
			<a href="javascript:history.go(-1);">返回</a>上一页面
		</p>
	</body>
</html>
